package com.ruoyi.system.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.system.mapper.ByOrgMapper;
import com.ruoyi.system.domain.ByOrg;
import com.ruoyi.system.service.IByOrgService;

/**
 * ByOrgService业务层处理
 * 
 * @author ruoyi
 * @date 2025-09-02
 */
@Service
public class ByOrgServiceImpl implements IByOrgService 
{
    @Autowired
    private ByOrgMapper byOrgMapper;

    /**
     * 查询ByOrg
     * 
     * @param id ByOrg主键
     * @return ByOrg
     */
    @Override
    public ByOrg selectByOrgById(String id)
    {
        return byOrgMapper.selectByOrgById(id);
    }

    /**
     * 查询ByOrg列表
     * 
     * @param byOrg ByOrg
     * @return ByOrg
     */
    @Override
    public List<ByOrg> selectByOrgList(ByOrg byOrg)
    {
        return byOrgMapper.selectByOrgList(byOrg);
    }

    /**
     * 新增ByOrg
     * 
     * @param byOrg ByOrg
     * @return 结果
     */
    @Override
    public int insertByOrg(ByOrg byOrg)
    {
        return byOrgMapper.insertByOrg(byOrg);
    }

    /**
     * 修改ByOrg
     * 
     * @param byOrg ByOrg
     * @return 结果
     */
    @Override
    public int updateByOrg(ByOrg byOrg)
    {
        return byOrgMapper.updateByOrg(byOrg);
    }

    /**
     * 批量删除ByOrg
     * 
     * @param ids 需要删除的ByOrg主键
     * @return 结果
     */
    @Override
    public int deleteByOrgByIds(String[] ids)
    {
        return byOrgMapper.deleteByOrgByIds(ids);
    }

    /**
     * 删除ByOrg信息
     * 
     * @param id ByOrg主键
     * @return 结果
     */
    @Override
    public int deleteByOrgById(String id)
    {
        return byOrgMapper.deleteByOrgById(id);
    }
}
